package org.example;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainLifeCycle {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(
                "org.example.lifecycle");
        ac.close();//销毁容器
    }
}
